package com.ruoyi.management.dao.mapper;

import com.ruoyi.management.pojo.param.AmmeterParam;
import com.ruoyi.management.pojo.param.TidParam;
import com.ruoyi.management.pojo.param.UserParam;
import com.ruoyi.management.pojo.po.QldbqyinfoPO;
import com.ruoyi.management.pojo.po.UserPO;
import com.ruoyi.management.pojo.vo.QLdbzymxVO;
import com.ruoyi.management.pojo.vo.QldbqyinfoVO;
import com.ruoyi.management.pojo.vo.UserResultVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    //添加联系人
    int addUser(UserPO userPO);
    //修改联系人
    int update(UserPO userPO);
    //通过电表编号查询关联联系人
    List<UserResultVO> selrctContact(UserParam userParam);
    //查询租用中信息
    List<QLdbzymxVO> selectUseList(AmmeterParam ammeterParam);
    //查询退用信息
    List<QLdbzymxVO> selectFileList(AmmeterParam ammeterParam);
    //通过khbh查企业基本信息
    QldbqyinfoVO selectzh(String dbbh);

    Boolean updateQyinfo(QldbqyinfoPO qldbqyinfoPO);

    Boolean delete(UserPO userPO);
    //查询企业详情列表
    List<QldbqyinfoVO> selectEnterpriseList(@Param("qymc") String qymc, @Param("zt") String zt);
    //查租户名下电表和操作和主题
    List<TidParam> selectTid(String khbh);
}
